package com.room.controller;

import com.room.pojo.DormResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created by sang on 2017/12/29.
 */
@RestController
public class RegLoginController {
    @RequestMapping("/login_p")
    public DormResult login() {
        return DormResult.error("未登录，请登录!");
    }
    @GetMapping("/user/advanced/hello")
    public String hello() {
        return "hello";
    }    @GetMapping("/user/basic/hello")
    public String basicHello() {
        return "basicHello";
    }
}
